fix: Add whitespace-nowrap to navbar buttons to prevent text wrapping#1520
Open
ibex088 wants to merge 1 commit intoCapSoftware:mainfrom
Open
fix: Add whitespace-nowrap to navbar buttons to prevent text wrapping#1520ibex088 wants to merge 1 commit intoCapSoftware:mainfrom
ibex088 wants to merge 1 commit intoCapSoftware:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Additional Comments (2)
-
apps/web/app/(site)/Navbar.tsx, line 237 (link)style: Consider adding
whitespace-nowraphere for consistency with the other navbar buttons.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
-
apps/web/app/(site)/Navbar.tsx, line 248 (link)style: Consider adding
whitespace-nowraphere for consistency with the other navbar buttons.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
1 file reviewed, 2 comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before:
After
Greptile Summary
Added
whitespace-nowrapTailwind class to navbar buttons to prevent text wrapping at narrow viewport widths.Confidence Score: 4/5
Important Files Changed
whitespace-nowrapto GitHub and Sign Up/Dashboard buttons to prevent text wrapping; two similar buttons (Loading, Login) could benefit from the same treatmentSequence Diagram
sequenceDiagram participant User participant Browser participant Navbar participant Button User->>Browser: Resize window to narrow width Browser->>Navbar: Trigger responsive layout Navbar->>Button: Apply sm:w-auto class Note over Button: Text wraps without whitespace-nowrap Button->>Button: Add whitespace-nowrap class Note over Button: Text no longer wraps Button->>Navbar: Render single-line button Navbar->>Browser: Display fixed navbar layout Browser->>User: Show properly formatted buttons